package cn.itsource.zcn.pay.controller;

import cn.itsource.zcn.pay.domain.PayBill;
import cn.itsource.zcn.pay.service.IPayBillService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * 支付单(PayBill)表控制层
 *
 * @author makejava
 * @since 2021-08-26 17:56:06
 */
@RestController
@RequestMapping("/pay")
public class PayBillController {
    /**
     * 服务对象
     */
    @Autowired
    private IPayBillService tPayBillService;

    /**
     * 查询全部数据
     *
     * @return List<>
     */
    @RequestMapping("/all")
    public List<PayBill> queryAll() {
        return tPayBillService.queryAll();
    }

}
